package com.thx.information.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * InformationExt entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "INFORMATION_EXT")
public class InformationExt implements java.io.Serializable {

  private static final long serialVersionUID = 1L;

  public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
  }

  @Id
  /*
   * @GeneratedValue(strategy = GenerationType.SEQUENCE,generator="payablemoney_seq")
   * 
   * @SequenceGenerator(name="payablemoney_seq", sequenceName="SEQ_INFOMATION_EXT",allocationSize=1)
   */

  @GeneratedValue(strategy = GenerationType.TABLE, generator = "tab-store")
  @TableGenerator(name = "tab-store", table = "tb_generator", pkColumnName = "gen_name",
      valueColumnName = "gen_value", pkColumnValue = "SEQ_INFOMATION_EXT", allocationSize = 1)
  // Fields

  private Long infoExtId;
  private Long infoId;
  private Long personnelId;
  private String personnelName;
  private Date lookTime;

  // Constructors

  /** default constructor */
  public InformationExt() {}

  /** minimal constructor */
  public InformationExt(Long infoExtId) {
    this.infoExtId = infoExtId;
  }

  /** full constructor */
  public InformationExt(Long infoExtId, Long infoId, Long personnelId, String personnelName,
      Date lookTime) {
    this.infoExtId = infoExtId;
    this.infoId = infoId;
    this.personnelId = personnelId;
    this.personnelName = personnelName;
    this.lookTime = lookTime;
  }

  // Property accessors

  public Long getInfoExtId() {
    return this.infoExtId;
  }

  public void setInfoExtId(Long infoExtId) {
    this.infoExtId = infoExtId;
  }

  public Long getInfoId() {
    return this.infoId;
  }

  public void setInfoId(Long infoId) {
    this.infoId = infoId;
  }

  public Long getPersonnelId() {
    return this.personnelId;
  }

  public void setPersonnelId(Long personnelId) {
    this.personnelId = personnelId;
  }

  public String getPersonnelName() {
    return this.personnelName;
  }

  public void setPersonnelName(String personnelName) {
    this.personnelName = personnelName;
  }

  public Date getLookTime() {
    return this.lookTime;
  }

  public void setLookTime(Date lookTime) {
    this.lookTime = lookTime;
  }

}
